package com.atguigu.gmall.order.rpc;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.order.biz.OrderBizService;
import com.atguigu.gmall.order.vo.OrderConfirmVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:ahang
 * @create:2022-10-23 1:50
 * @Description:
 */
@RestController
@RequestMapping("/api/inner/order")
public class OrderRpcController {

    @Autowired
    OrderBizService orderBizService;

    @GetMapping("/confirm/data")
    public Result<OrderConfirmVo> getOrderConfirmdata(){
        //获取返回页面数据
        OrderConfirmVo confirm = orderBizService.getOrderConfirmdata();
        return Result.ok(confirm);
    }
}
